package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import p325m0.MutabilityOwnership;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;
import p671zc.CompositeDisposable;
import p677zi.PixivImageLoader;

/* compiled from: RecommendedUserSolidItem.kt */
/* renamed from: jp.pxv.android.viewholder.RecommendedUserSolidItem */
/* loaded from: classes2.dex */
public final class RecommendedUserSolidItem extends FlexibleItemAdapterSolidItem {
    public static final int $stable = 8;
    private final CompositeDisposable compositeDisposable = new CompositeDisposable();
    private final PixivImageLoader pixivImageLoader;

    public RecommendedUserSolidItem(PixivImageLoader aVar) {
        MutabilityOwnership.m3745m(aVar, "pixivImageLoader");
        this.pixivImageLoader = aVar;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public int getSpanSize() {
        return 2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        MutabilityOwnership.m3745m(viewGroup, "parent");
        RecommendedUserViewHolder createViewHolder = RecommendedUserViewHolder.createViewHolder(this.compositeDisposable, viewGroup, this.pixivImageLoader);
        MutabilityOwnership.m3746l(createViewHolder, "createViewHolder(composi…parent, pixivImageLoader)");
        return createViewHolder;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public void onDetachedFromRecyclerView() {
        super.onDetachedFromRecyclerView();
        this.compositeDisposable.m80f();
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i3 == 0;
    }
}
